/**
 * Copyright 2011 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.api.adwords.starterkit.examples.enhancedads.settings;

import java.util.HashSet;

/**
 * The Class EmailSettings represents the Email Account to be used by
 * EnhancedAds to send reports.
 * 
 * @author rodrigo.f.vale@gmail.com
 *  
 */
public class EmailSettings {
  private String host;
  private int port;
  private String login;
  private String password;
  private boolean tls;
  private String from;
  private HashSet<String> destinations;
  private String attachFile;
  private String title;
  private String content;
  
  public EmailSettings(String host, int port, String login, String password,
      String from, boolean tls, HashSet<String> destinations, 
      String attachFile, String title, String content) {
    this.host = host;
    this.port = port;
    this.login = login;
    this.password = password;
    this.setFrom(from);
    this.tls = tls;
    this.destinations = destinations;
    this.attachFile = attachFile;
    this.title = title;
    this.content = content;
  }
  
  public void setHost(String host) {
    this.host = host;
  }
  
  public String getHost() {
    return host;
  }
  
  public void setPort(int port) {
    this.port = port;
  }
  
  public int getPort() {
    return port;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  public String getLogin() {
    return login;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPassword() {
    return password;
  }

  public void setTls(boolean tls) {
    this.tls = tls;
  }

  public boolean getTls() {
    return tls;
  }

  public void setDestinations(HashSet<String> destinations) {
    this.destinations = destinations;
  }

  public HashSet<String> getDestinations() {
    return destinations;
  }

  public void setFrom(String from) {
    this.from = from;
  }

  public String getFrom() {
    return from;
  }

  public void setAttachFile(String attachFile) {
    this.attachFile = attachFile;
  }

  public String getAttachFile() {
    return attachFile;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getTitle() {
    return title;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public String getContent() {
    return content;
  }
}
